package chai.ningning.files;

import java.io.File;
import java.io.IOException;

public class FileTest2 {

    public static void main(String[] args) throws IOException {

        File fod = new File(".");
        System.out.println( "fod :" +fod );

        File absolute = fod.getAbsoluteFile();
        System.out.println( "absolute :" + absolute );

        File cononical = fod.getCanonicalFile();
        System.out.println( "cononical :" +cononical );

        File parent = cononical.getParentFile();
        System.out.println( "parent :" +parent );
    }
}
